package jsu.blogger.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TagMapper {
    @Select("SELECT tag_name FROM tags WHERE tag_name LIKE CONCAT('%', #{keyword}, '%')")
    List<String> findTagNamesByKeyword(String keyword);
    @Select("SELECT tag_name FROM tags")
    List<String> getAllTagNames();
}